package com.ssy.lingxi.pay.repository;

import com.ssy.lingxi.pay.entity.CreditOuterVerifyRecordDO;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 授信外部审批记录
 * @author 伍将
 * @date 2020/8/18
 * @version 2.0.0
 */
@Repository
public interface CreditOuterVerifyRecordRepository extends JpaRepository<CreditOuterVerifyRecordDO, Long>, JpaSpecificationExecutor<CreditOuterVerifyRecordDO> {

    /**
     * 根据申请id查询审批记录，按操作时间升序排序
     * @author 伍将
     * @date 2020/8/18
     **/
    List<CreditOuterVerifyRecordDO> findByApplyIdOrderByOperateTimeAsc(Long applyId);
}
